<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
    <ui:composition template="/templates/default/layout.xhtml">
        <ui:define name="content">
            <h:form prependId="false" styleClass="listform">
                <p:toolbar>
                    <p:toolbarGroup align="left">
                        <p:commandButton type="push" update="itemView" oncomplete="singleViewDialog.show()" value="查看"/>
                    </p:toolbarGroup>
                    <p:toolbarGroup align="right">
                        
                    </p:toolbarGroup>
                </p:toolbar>
                <p:dataTable id="listTable" var="item" value="#{HDSerialAction.dataList}" styleClass="listTable" emptyMessage="对不起，没有找到合适数据！"
                             paginator="true" rows="10" selection="#{HDSerialAction.selectedItem}"
                             paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                             rowsPerPageTemplate="5,10,15,20,30">
                    <f:facet name="header">

                    </f:facet>
                    <p:column selectionMode="single"/>
                    <p:column sortBy="#{item.id}" filterBy="#{item.id}">
                        <f:facet name="header">
                            <h:outputText value="模型ID号" styleClass="dfont"/>
                        </f:facet>
                        <h:outputText value="#{item.id}"  styleClass="dfont"/>
                    </p:column>
                    <p:column sortBy="#{item.className}" filterBy="#{item.className}" filterMatchMode="contains">
                        <f:facet name="header">
                            <h:outputText value="模型名" styleClass="dfont"/>
                        </f:facet>
                        <h:outputText value="#{item.className}"  styleClass="dfont"/>
                    </p:column>
                    <p:column sortBy="#{item.serialPrefix}" filterBy="#{item.serialPrefix}">
                        <f:facet name="header">
                            <h:outputText value="序号前缀" styleClass="dfont"/>
                        </f:facet>
                        <h:outputText value="#{item.serialPrefix}"  styleClass="dfont"/>
                    </p:column>
                    <p:column sortBy="#{item.serialSuffix}" filterBy="#{item.serialSuffix}">
                        <f:facet name="header">
                            <h:outputText value="序号后缀" styleClass="dfont"/>
                        </f:facet>
                        <h:outputText value="#{item.serialSuffix}"  styleClass="dfont"/>
                    </p:column>
                    <p:column sortBy="#{item.lastNumber}" filterBy="#{item.lastNumber}">
                        <f:facet name="header">
                            <h:outputText value="序号上限" styleClass="dfont"/>
                        </f:facet>
                        <h:outputText value="#{item.lastNumber}" styleClass="dfont"/>
                    </p:column>
                </p:dataTable>
            </h:form>
        </ui:define>
    </ui:composition>
</html>
